import request from '@/utils/request'

// 查询遥测历史模型列表
export function listHistory_model_yc(query) {
  return request({
    url: '/scada/history_model_yc/list',
    method: 'get',
    params: query
  })
}

// 查询遥测历史模型详细
export function getHistory_model_yc(id) {
  return request({
    url: '/scada/history_model_yc/' + id,
    method: 'get'
  })
}

// 新增遥测历史模型
export function addHistory_model_yc(data) {
  return request({
    url: '/scada/history_model_yc',
    method: 'post',
    data: data
  })
}

// 修改遥测历史模型
export function updateHistory_model_yc(data) {
  return request({
    url: '/scada/history_model_yc',
    method: 'put',
    data: data
  })
}

// 删除遥测历史模型
export function delHistory_model_yc(id) {
  return request({
    url: '/scada/history_model_yc/' + id,
    method: 'delete'
  })
}
